package main.framework.resource;

import main.framework.exception.ResourceMethodExecutionException;

/**
 * This abstract class is the base for all kind of resource method classes which gets data 
 * (HTTP method: GET) 
 */
public abstract class DataGetterResourceMethod implements ResourceMethod {

	protected ResourceData data;
	
	@Override
	public abstract void execute(Resource resource) throws ResourceMethodExecutionException;
	
	/**
	 * Gets the data which was requested by the resource method.
	 * 
	 * @return The resource data which was requested by the resource method.
	 */
	public ResourceData getData(){
		return this.data;
	}

}
